<template>
  <div class="box-card">
    <div class="box-head">
        <slot name="title"></slot>
        <i class="el-icon-close" @click="clickCloce"></i>
    </div>
    <div class="card-input">
        <slot name="input"></slot>
    </div>
  </div>
</template>

<script>
export default {
    name:'FloatCard',
    data(){
        return{
            
        }
    },
    methods:{
        clickCloce(){
            this.$emit('closeCard')
        },
    },
}
</script>

<style scoped>
.box-card{
    position: absolute;
    width: calc(100% - 40px);
    top: calc(-100% - 80px);
    z-index: 999;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 2px 4px 16px 2px rgba(201, 201, 201, 0.5);
}
.box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}
.box-head i{
    cursor: pointer;
}
.box-head >>> b{
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

::v-deep .el-input input{
    height: 41px;
    line-height: 41px;
    border-radius: 25px 0 0 25px;
    border-right: 0;
}
::v-deep .el-input input:focus-within{
    border-color: #DCDFE6;
}
::v-deep .el-input-group__append{
    width: 74px;
    border-left: 0;
    background-color:transparent;
    border-radius: 0 25px 25px 0;
}
::v-deep .el-input-group__append>button{
    background-color: #F87A23;
    border-radius: 20px;
    color: #fff;
}
</style>